package net.hn.hnms.biz.training.service;

import net.hn.hnms.biz.training.request.AccessmentResultReq;
import net.hn.hnms.biz.training.request.AccessmentStatisticsReq;
import net.hn.hnms.biz.training.vo.AccessmentResultVO;
import net.hn.hnms.biz.training.vo.AccessmentScoreVO;
import net.hn.hnms.sys.common.core.domain.ResponsePage;
import net.hn.hnms.sys.common.mybatis.core.page.PageQuery;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 考评结果服务层
 * @author wangjingrui
 * @date 2022/8/24 14:05
 */
public interface IAssessmentResultService {

    void importResult(Date date, MultipartFile file,String mineCode);

    ResponsePage<AccessmentResultVO> selectPageList(AccessmentResultReq req, PageQuery pageQuery);

    Map<String, Set<String>> dict(String mineCode);

    List<Map<String, Object>> pieChart(AccessmentStatisticsReq req);

    List<AccessmentScoreVO> lineChart(AccessmentStatisticsReq req);

    List<List<Object>> columnChart(AccessmentStatisticsReq req);

    void downloadTemplate(HttpServletResponse response);
}
